<%= stylesheet_link_tag "basic_info" %>

<div id="notice" class="notice"><%= notice %></div>

<%= render "utils/basic_info_tabs" %>

<div class="right_btn_div">
  <%= link_to (t 'common.new'), new_shipowner_path, {:class => "inline-block s-btn"} %>
</div>

<table class="grid">
  <tr>
    <th><%= t 'activerecord.attributes.shipowner.name' %></th>
    <th><%= t 'activerecord.attributes.shipowner.code' %></th>
    <th><%= t 'activerecord.attributes.shipowner.address' %></th>
    <th><%= t 'activerecord.attributes.shipowner.phone' %></th>
    <th class="toolbar"></th>
  </tr>
  <% @shipowners.each do |shipowner| %>
      <tr>
        <td class = "ellipsis" title = "<%= shipowner.name %>"><%= shipowner.name %></td>
        <td class = "ellipsis" title = "<%= shipowner.code %>"><%= shipowner.code %></td>
        <td class = "ellipsis" title = "<%= shipowner.address %>"><%= shipowner.address %></td>
        <td class = "ellipsis" title = "<%= shipowner.phone %>"><%= shipowner.phone %></td>
        <td style="width: 150px;">
          <%= link_to (t 'common.show'), shipowner %>
          <%= link_to (t 'common.edit'), edit_shipowner_path(shipowner) %>
          <%= link_to (t 'common.destroy'), shipowner, confirm: (t 'common.confirm_destroy'), method: :delete %>
        </td>
      </tr>
  <% end %>
</table>